#!/usr/bin/env python
import sys
import helper

class FriendRecommendationMapper(helper.MapperHelper):
    def mapper(self):
        for line in sys.stdin:
            left, right = self.loader(line)
            self.allocator(left, right)

def main():
    fm = FriendRecommendationMapper()
    fm.mapper()

if __name__ == '__main__':
    main()
